package com.yuxi.excelEntity;

import java.util.Comparator;

import com.yuxi.Entity.InformationPort;

public class ComparatorPort implements Comparator<InformationPort> {
	
	@Override
	public int compare(InformationPort o1, InformationPort o2) {
		if(o1.getLevel()==o2.getLevel()){
			return 0;
		}
		if(o1.getLevel()>o2.getLevel()){
			return 1;
		}
		if(o1.getLevel()<o2.getLevel()){
			return -1;
		}
		return 0;
	}
	
}
